package com.zzw.thread;

import java.util.concurrent.ArrayBlockingQueue;
import java.util.concurrent.BlockingQueue;

public class BlockingQueueTest {

	public static void main(String[] args) {
		BlockingQueue<String> queue = new ArrayBlockingQueue<>(2);
		try {
			queue.put("1");
			queue.put("2");
			queue.put("3");
		} catch (InterruptedException e) {
			e.printStackTrace();
		}
	}
	
}